import React from 'react'

export function Table(props) {
  return (
    <table>
      <tbody>
        {
          props.data.map((item) => {
            return (
              <tr key={item.id}>
                <td>{item.name}</td>
                <td>{item.price}</td>
                <td>{item.color}</td>
                <td>{item.weight}</td>
                <td>{item.size}</td>
              </tr>
            )
          })
        }
      </tbody>
    </table>
  )
}
